package com.example.badyloans.dao;

import com.example.badyloans.pojo.TRecharge;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TRechargeMapper {
    int deleteByPrimaryKey(String id);

    int insertSelective(TRecharge record);

    TRecharge selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TRecharge record);

    List<TRecharge> selecttrecharge(@Param("userid") String userid,@Param("currentPageNo") int currentPageNo,
                                    @Param("pageSize")int pageSize,@Param("beginDate") String beginDate,@Param("endDate") String endDate,@Param("state") String state);

    int selectBy(@Param("userid") String userid,@Param("state") String state,@Param("beginDate") String beginDate,@Param("endDate") String endDate);

    TRecharge selectchaxun();

    int update(@Param("state") Integer state,@Param("id") String id);
}